#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :mSession.py
# @Time      :2021/6/20 19:02
# @Author    : 刘广鸿

from dbs.database import SessionLocal


# Dependency
def get_db():
    db = SessionLocal()
    try:
        yield db
    finally:
        db.close()
